-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.g.rust_recommended_style = 0

-- user customzied
local o = vim.opt
o.termguicolors = true -- 启用真彩色
o.relativenumber = false -- Relative line numbers

-- Check if 'pwsh' is executable and set the shell accordingly
if vim.fn.executable("pwsh") == 1 then
	o.shell = "pwsh"
	o.shellcmdflag =
		"-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
	o.shellxquote = ""
end

-- neovide
if vim.g.neovide then
	-- Put anything you want to happen only in Neovide here
	-- vim.o.guifont = "JetBrains Mono:h14"
	vim.g.neovide_fullscreen = true
end
